//
//  NSArray+MSReverse.m
//  PeopleForTheFirstMall
//
//  Created by iOS on 2020/4/30.
//  Copyright © 2020 MS. All rights reserved.
//

#import "NSArray+MSReverse.h"

@implementation NSArray (MSReverse)

- (NSArray *)ms_reverse
{
    NSMutableArray *arr = [NSMutableArray arrayWithCapacity:self.count];
    NSEnumerator *reverse = self.reverseObjectEnumerator;
    
    id obj = nil;
    while (obj = [reverse nextObject])
    {
        [arr addObject:obj];
    }
    
    return arr;
}

@end
